/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html#wxonsocketerrorcallback)
 */
export default function on_socket_error() {
	return new Promise<boolean>((resolve) => {
		wx.onSocketError(() => {
			resolve(true);
		});
	});
}
